package org.dromara.business.domain.bo;

import org.dromara.business.domain.ContentTag;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 统一内容标签定义业务对象 t_content_tag
 *
 * @author Hao Tong Xue
 * @date 2025-04-21
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = ContentTag.class, reverseConvertGenerate = false)
public class ContentTagBo extends BaseEntity {

    /**
     * 标签ID
     */
    @NotNull(message = "标签ID不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 标签名称
     */
    @NotBlank(message = "标签名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String tagName;

    /**
     * 关联的内容ID（视频或音频ID或文章）
     */
    @NotNull(message = "关联的内容ID（视频或音频ID或文章）不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long contentId;

    /**
     * 内容类型（1-视频，2-音频，3-文章）
     */
    @NotNull(message = "内容类型（1-视频，2-音频，3-文章）不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer contentType;

    /**
     * 排序
     */
    private Integer orderBy;

    /**
     * 备注
     */
    private String remark;


}
